<?php

namespace App\Events;

use Illuminate\Broadcasting\InteractsWithSockets;
use Illuminate\Foundation\Events\Dispatchable;
use Illuminate\Queue\SerializesModels;

class OrderStatisticEvent
{
    use Dispatchable, InteractsWithSockets, SerializesModels;

    public int $amount;
    public string $type;
    /**
     * Create a new event instance.
     *
     * @return void
     */
    public function __construct($amount, $type)
    {
        $this->amount = $amount;
        $this->type = $type;
    }
}
